<?php
/**
 * Created by a front-end programmer.
 * User: Xwen
 * Date: 2018/2/24
 * Time: 16:29
 * Mail:lauwencn@gmail.com
 */
class CommonController extends Controller{
    public function __init(){
        if(!isset($_SESSION['uid']) || !isset($_SESSION['username'])){
            go(__APP__.'?c=Login');
        }
    }
}
?>